package com.lanou3g.ptp.organize.service;

import com.github.pagehelper.PageInfo;
import com.lanou3g.ptp.entity.Clazz;

import java.util.List;

public interface ClazzService {
    void addClazz(Clazz clazz);

    Clazz findById(Long id);

    List<Clazz> findByIds(Long[] ids);

    Clazz findByName(String name);

    List<Clazz> findAll();

    void updateById(Clazz clazz);

    void deleteById(Long id);

    void deleteByIds(Long[] ids);

    PageInfo<Clazz> findByPage(Integer page, Integer size);

    List<Clazz> findByMajorId(Long majorId);

    PageInfo<Clazz> findByPage(Integer page, Integer size, Long majorId, String grade);
}
